 package com.wfcm.service.impl;

import com.wfcm.dao.RecordDao;
import com.wfcm.entity.Record;
import com.wfcm.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


 @Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordDao recordDao;

    public Integer insert(Record record) {
        return recordDao.insert(record);
    }

    public void update(Record record) {
        recordDao.update(record);
    }

    @Override
    public Record selectByUseridAndChapterid(Record record) {
        return recordDao.selectByUseridAndChapterid(record);
    }

    @Override
    public Record selectByCreateTime(Record record) {
        return recordDao.selectByCreateTime(record);
    }

     @Override
     public Integer queryTotal(Integer uid) {
         return recordDao.queryTotal(uid);
     }

     @Override
     public void delRecord(Map<String, Object> map) {
         recordDao.delRecord(map);
     }

    @Override
    public Integer selectStudyTime(Record record) {
        return recordDao.selectStudyTime(record);
    }

    @Override
    public Integer selectTimeByTime(Map<String, Object> map) {
        return recordDao.selectTimeByTime(map);
    }

     @Override
     public Integer selectCount(Map<String, Object> map) {
         return recordDao.selectCount(map);
     }

     @Override
    public Integer updateTimeByUseridAndChapterid(Record record) {
        return recordDao.updateTimeByUseridAndChapterid(record);
    }

}
